#ifndef ACCUMULATOR_MAX_H
#define ACCUMULATOR_MAX_H

#include "Accumulator.h"

class Accumulator_Max : public Accumulator {
public:
    Accumulator_Max() { reset(); }
    void accumulate(double newValue) {
        if (newValue > value) value = newValue;
        count++;
    }
};

#endif
